<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/system/role/list" method="POST">
        <input type="hidden" name="pageSize" value="${pageInfo.pageSize}">
        <input type="hidden" name="pageNum" value="${pageInfo.pageNum}">
        <div class="bjui-searchBar">
            <label>角色名称：</label><input type="text" name="roleName" value="${role.roleName!}" size="15"/>
            <label>状态:</label>
            <@h.select name="available" list=fn.getDicValue('AVAILABLE_STATUS') value=role.available defaultOptions= {"":"全部"}/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="${ctx}/system/role/create" data-toggle="dialog" data-id="createRole" data-mask="true"><i class="fa fa-plus"></i> 新增数据</a></li>
                       <!--  <li><a href="${ctx}/role/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="delids" data-group="ids" data-callback="deleteCallback">删除选中</a></li>
                        <li class="divider"></li>
                        <li><a href="" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？">导出<span style="color: green;">全部</span></a></li>
                        <li><a href="" data-toggle="doexportchecked" data-confirm-msg="确定要导出选中项吗？" data-idname="expids" data-group="ids">导出<span style="color: red;">选中</span></a></li> -->
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed"  data-width="100%">
	    <thead>
	        <tr>
	            <th>角色名称</th>
	            <th>角色描述</th>
	            <th>状态</th>  
	            <th>创建时间</th>
	            <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
	            <th align="center">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	        <#list pageInfo.list as role>
	            <tr>
	                <td>${role.roleName}</td>
	                <td>${role.roleDesc}</td>
	                <td>${fn.getDicValue('AVAILABLE_STATUS',role.available)!}</td>
                	<td>${role.createTime ? datetime}</td>
                	<td><input type="checkbox" name="ids" data-toggle="icheck" value="${role.roleId}"></td>
	                <td>
		                <div class="btn-group">
		                	<button type="button" class="btn-default btn-sm dropdown-toggle" data-toggle="dropdown" data-icon="copy">操作<span class="caret"></span></button>
		                    <ul class="dropdown-menu right" role="menu">
		                       <!--  <li><a href="${ctx}/system/role/create" data-toggle="dialog" data-id="createRole" data-mask="true"><i class="fa fa-plus"></i> 新增角色</a></li> -->
		                        <li><a href="${ctx}/system/role/${role.roleId}/edit" data-toggle="dialog" data-id="editRole${role.roleId}" data-title="编辑角色-${role.roleName}" data-mask="true">编辑</a></li>
		                        <li><a href="${ctx}/system/role/${role.roleId}/delete" data-toggle="doajax"  data-confirm-msg="确定要删除吗？" data-callback="deleteCallback">删除</a></li>
		                    </ul>
		                </div>
	                </td>
	            </tr>
	        </#list>
	    </tbody>
	</table>
</div>
<@h.pageFooter />

